package DesignMode.COR;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}14:52
 */
public class ConcreteHandler1 extends Handler {//具体处理类
    @Override
    public void HandleRequest(int request) {//满足条件处理此请求
        if (request >= 0 && request < 10){
            System.out.println(this.getClass().getName()+"处理请求"+request);
        }else if (successor != null){//转移到下一位
            successor.HandleRequest(request);
        }
    }
}
